import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqCrossGuildWarMatchInfoHelper } from "./SeqCrossGuildWarMatchInfoHelper";
type int = number;
//class SCrossGuildWarMatchInfos
    
    export  class SCrossGuildWarMatchInfos extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossGuildWarMatchInfos();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.pageNum);
            arg1.writeInt(this.guildNum);
            SeqCrossGuildWarMatchInfoHelper.write(arg1, this.matchInfos);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.pageNum = arg1.readInt();
            this.guildNum = arg1.readInt();
            this.matchInfos = SeqCrossGuildWarMatchInfoHelper.read(arg1);
            return;
        }

        public /* const */_type: int=913;

        public /* var */pageNum: int;

        public /* var */guildNum: int;

        public /* var */matchInfos: Array<any>;

        public static /* var */_regist: SCrossGuildWarMatchInfos;
    }

            SCrossGuildWarMatchInfos._regist = new SCrossGuildWarMatchInfos(true);
        